﻿// This class is "generated" and will be overwritten.
// Your customizations should be made in PriorityLevelRecord.cs

using System;
using System.Collections;
using System.Data.SqlTypes;
using BaseClasses;
using BaseClasses.Data;
using BaseClasses.Data.SqlProvider;

namespace BUGLOG.Business
{

/// <summary>
/// The generated superclass for the <see cref="PriorityLevelRecord"></see> class.
/// </summary>
/// <remarks>
/// This class is not intended to be instantiated directly.  To obtain an instance of this class, 
/// use the methods of the <see cref="PriorityLevelTable"></see> class.
/// </remarks>
/// <seealso cref="PriorityLevelTable"></seealso>
/// <seealso cref="PriorityLevelRecord"></seealso>
public class BasePriorityLevelRecord : PrimaryKeyRecord
{

	public readonly static PriorityLevelTable TableUtils = PriorityLevelTable.Instance;

	// Constructors
 
	protected BasePriorityLevelRecord() : base(TableUtils)
	{
	}

	protected BasePriorityLevelRecord(PrimaryKeyRecord record) : base(record, TableUtils)
	{
	}







#region "Convenience methods to get/set values of fields"

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's PriorityLevel_.PriorityID field.
	/// </summary>
	public ColumnValue GetPriorityIDValue()
	{
		return this.GetValue(TableUtils.PriorityIDColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's PriorityLevel_.PriorityID field.
	/// </summary>
	public Int32 GetPriorityIDFieldValue()
	{
		return this.GetValue(TableUtils.PriorityIDColumn).ToInt32();
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's PriorityLevel_.PriorityLevel field.
	/// </summary>
	public ColumnValue GetPriorityLevelValue()
	{
		return this.GetValue(TableUtils.PriorityLevelColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's PriorityLevel_.PriorityLevel field.
	/// </summary>
	public string GetPriorityLevelFieldValue()
	{
		return this.GetValue(TableUtils.PriorityLevelColumn).ToString();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's PriorityLevel_.PriorityLevel field.
	/// </summary>
	public void SetPriorityLevelFieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.PriorityLevelColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's PriorityLevel_.PriorityLevel field.
	/// </summary>
	public void SetPriorityLevelFieldValue(string val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.PriorityLevelColumn);
	}
	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's PriorityLevel_.PriorityLevelDescription field.
	/// </summary>
	public ColumnValue GetPriorityLevelDescriptionValue()
	{
		return this.GetValue(TableUtils.PriorityLevelDescriptionColumn);
	}

	/// <summary>
	/// This is a convenience method that provides direct access to the value of the record's PriorityLevel_.PriorityLevelDescription field.
	/// </summary>
	public string GetPriorityLevelDescriptionFieldValue()
	{
		return this.GetValue(TableUtils.PriorityLevelDescriptionColumn).ToString();
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's PriorityLevel_.PriorityLevelDescription field.
	/// </summary>
	public void SetPriorityLevelDescriptionFieldValue(ColumnValue val)
	{
		this.SetValue(val, TableUtils.PriorityLevelDescriptionColumn);
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's PriorityLevel_.PriorityLevelDescription field.
	/// </summary>
	public void SetPriorityLevelDescriptionFieldValue(string val)
	{
		ColumnValue cv = new ColumnValue(val);
		this.SetValue(cv, TableUtils.PriorityLevelDescriptionColumn);
	}


#endregion

#region "Convenience methods to get field names"

	/// <summary>
	/// This is a property that provides direct access to the value of the record's PriorityLevel_.PriorityID field.
	/// </summary>
	public Int32 PriorityID
	{
		get
		{
			return this.GetValue(TableUtils.PriorityIDColumn).ToInt32();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.PriorityIDColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool PriorityIDSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.PriorityIDColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's PriorityLevel_.PriorityID field.
	/// </summary>
	public string PriorityIDDefault
	{
		get
		{
			return TableUtils.PriorityIDColumn.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's PriorityLevel_.PriorityLevel field.
	/// </summary>
	public string PriorityLevel
	{
		get
		{
			return this.GetValue(TableUtils.PriorityLevelColumn).ToString();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.PriorityLevelColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool PriorityLevelSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.PriorityLevelColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's PriorityLevel_.PriorityLevel field.
	/// </summary>
	public string PriorityLevelDefault
	{
		get
		{
			return TableUtils.PriorityLevelColumn.DefaultValue;
		}
	}
	/// <summary>
	/// This is a property that provides direct access to the value of the record's PriorityLevel_.PriorityLevelDescription field.
	/// </summary>
	public string PriorityLevelDescription
	{
		get
		{
			return this.GetValue(TableUtils.PriorityLevelDescriptionColumn).ToString();
		}
		set
		{
			ColumnValue cv = new ColumnValue(value);
			this.SetValue(cv, TableUtils.PriorityLevelDescriptionColumn);
		}
	}


	/// <summary>
	/// This is a convenience method that can be used to determine that the column is set.
	/// </summary>
	public bool PriorityLevelDescriptionSpecified
	{
		get
		{
			ColumnValue val = this.GetValue(TableUtils.PriorityLevelDescriptionColumn);
            if (val == null || val.IsNull)
            {
                return false;
            }
            return true;
		}
	}

	/// <summary>
	/// This is a convenience method that allows direct modification of the value of the record's PriorityLevel_.PriorityLevelDescription field.
	/// </summary>
	public string PriorityLevelDescriptionDefault
	{
		get
		{
			return TableUtils.PriorityLevelDescriptionColumn.DefaultValue;
		}
	}


#endregion
}

}
